package com.runssnail.demo.spring.aop;

/**
 * Created by zhengwei on 2016/2/2.
 */
public class HelloWorldAspect {

    // 前置通知
    public void beforeAdvice() {
        System.out.println("===========before advice");
    }

    // 前置通知
    public void beforeAdvice(String param) {
        System.out.println("===========before advice param:" + param);
    }

    // 后置返回通知
    public void afterReturningAdvice(Object retVal) {
        System.out.println("===========after returning advice retVal:" + retVal);
    }

    // 后置异常通知
    public void afterThrowingAdvice(Exception exception) {
        System.out.println("===========after throwing advice exception:" + exception);
    }

    // 后置最终通知
    public void afterFinallyAdvice() {
        System.out.println("===========after finally advice");
    }

}
